﻿import com.dmotiko.lib.EventDispatcherPro;
import com.dmotiko.zonaoutlet.*
import com.dmotiko.general.*
import mx.transitions.*;
import mx.transitions.easing.*;
import mx.utils.Delegate;

class ZOSiteSection
extends WebSiteSection {
		
	function ZOSiteSection( app:ZOSite ) {
		super( app );
		this.stop();
		bShowed = false;
	}
	
	public function showSection() {
		if (bShowed) return;
		bShowed = true;
		this.gotoAndStop(2);
		this._alpha = 100;
		showEnd();
	}
	
	public function hideSection() {
		if (!bShowed) return;
		bShowed = false;
		this._alpha = 0;
		this.gotoAndStop(1);
		hideEnd();
	}
	private function tweenFinished(key:String, tween:Tween):Void {
		if ( bShowed ) {
			showEnd();
		} else {
			this.gotoAndStop(1);
			hideEnd();
		}
	}
	
}